package ipt.android.application;

import java.util.concurrent.atomic.AtomicInteger;

import org.apache.http.impl.client.DefaultHttpClient;

public class HttpClient extends DefaultHttpClient {

	private static HttpClient teste;
	private static final AtomicInteger usageCounter = new AtomicInteger(0);
	
	public HttpClient() {
		super();
		teste = this;
	}
	
	public static synchronized HttpClient getHttpCliente() {
		if (teste == null) {
			teste = new HttpClient();
		}
		usageCounter.incrementAndGet();
		return teste;
	}

	
}
